// @Bind @dtInvCheckDetail.onInsert
!function(self,arg,dsInvCheck) {
var inv = dsInvCheck.getData("#");

var invDe = arg.entity;

invDe.set("invCheckUid", inv.get("invCheckUid"));

invDe.set("warehouseUid", mWarehouseId);


}

// @Bind #updateActionCreate.onSuccess
!function(self,arg,dsInvCheckDetail) {
dsInvCheckDetail.flush();
}

// @Bind #updateActionSaveMateria.onGetUpdateData
!function(self, arg) {
var dgCheck = view.id("dgCheck");


var sdata = dgCheck.get("selection");

if(sdata.length == 0){
		// dorado.MessageBox.alert("请先选择要登账的盘点单!");
	}else{
		//arg.data = sdata;
	}


}



//@Bind #dtInvCheck.onCurrentChange
!function(self, arg) {
var dsInvCheck = view.id("dsInvCheck");

var invCheck = dsInvCheck.getData("#");


var invCheckUid = invCheck.get("invCheckUid");

var dsInvCheckDetail = view.id("dsInvCheckDetail");

dsInvCheckDetail.set("parameter",{"invCheckUid":invCheckUid,"warehouseUid":mWarehouseId});

dsInvCheckDetail.flush();

}

